package club.kingon.basic.basic.grammar;

/**
 * Decimal Learn's Main
 * @author: Kingon
 * @Date: 2019/11/3
 * @Environment: JDK1.8
 **/
public class DecimalLearning {
    public static void main(String[] args) {
        // WARN: if u want to run success.please delete CharLearning.class 24th line !!!
        //Defined a normal float Decimal
        float floatDecimal = 111f;
        //Defined a normal double Decimal
        double doubleDecimal = 22222; // or 22222d
        //Output to check
        System.out.println(floatDecimal);
        System.out.println(doubleDecimal);
        System.out.println(2.0-1.1);
        //Extends
        //Can u try to set Decimal more their scope,and then look the result?
    }
}
